import request from '/@/utils/request';

/**
 *
 * 准入准出api接口集合
 * @method patientAccessList 患者列表
 * @method doctorAccessList 医生列表 
 * @method operationAccessList 术式列表 
 * @method importOperation 导入术式
 * @method departmentList 科室列表
 * @method operationSetIsDaySign 术式设置
 * @method operationUpdate 术式修改
 * @method setIsChief 主刀修改
 * @method setChiefOperation 主刀术式对应
 * @method setDepartmentChief 科室主刀对应
 * 
 */

export function entryAndExitApi() {
	return {
		patientAccessList: (params) => {
			return request({
				url: '/patient/access',
				method: 'get',
				params:params,
			});
		},
    doctorAccessList: (data) => {
			return request({
				url: '/chief_admission/list',
				method: 'post',
				data,
			});
		},
		operationAccessList: (data) => {
			return request({
				url: '/operation_admission',
				method: 'post',
				data,
			});
		},
		importOperation: (data) => {
			return request({
				url: '/operation_admission/import',
				method: 'post',
				data,
			});
		},
		departmentList: (params) => {
			return request({
				url: '/department',
				method: 'get',
				params:params,
			});
		},
		operationSetIsDaySign: (data) => {
			return request({
				url: '/operation_admission/setIsDaySign',
				method: 'post',
				data,
			});
		},
		operationUpdate: (data) => {
			return request({
				url: '/operation_admission/update',
				method: 'post',
				data,
			});
		},
		departmentSetIsDaySign: (data) => {
			return request({
				url: '/department/setIsDaySign',
				method: 'post',
				data,
			});
		},
		setIsChief: (data) => {
			return request({
				url: '/chief_admission/setIsChief',
				method: 'post',
				data,
			});
		},
		setChiefOperation: (data) => {
			return request({
				url: '/chief_admission/setChiefOperation',
				method: 'post',
				data,
			});
		},
		setDepartmentChief: (data) => {
			return request({
				url: '/department/setDepartmentChief',
				method: 'post',
				data,
			});
		},
		

	};
}


